﻿@model QuanLyGiaoVuUI.Models.GiangVienClient.ThongTinGiangVienClientViewModel
@using QuanLyGiaoVuUI.Helpers
@{
    ViewBag.Title = "DamNhanMons";
    Layout = "~/Views/Shared/_GiangVienClientLayout.cshtml";
    
}

<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
<!--  start page-heading -->


<div id="gv-main-wrapper">
    @{Html.RenderPartial("GiangVienClientGiangDayMenuPartial");}


    <div id="main" class="grid_10 gvclientmain">
        <!--  start page-heading -->

        <div id="page-heading" class="box round first grid">
            <h2>Môn đảm nhận giảng dạy</h2>
            <!-- end page-heading -->

            <div id="gvclientmaincontent" class="block">
                <div id="content-table-inner">
                    <!-- start id-form -->
                    @{Html.EnableClientValidation();}
                    @using (Ajax.BeginForm("", "", new AjaxOptions { HttpMethod = "POST" }))
                    {
                        var count = 0;
                        var counter = 1;
                        @Html.ValidationSummary(true)
                        @Html.HiddenFor(model => model.ID)
                        <div id="">
                            <div>
                                <table class="data display datatable">
                                    <thead>
                                        <tr>
                                            <th class="sorting">STT</th>
                                            <th class="sorting">Mã Môn</th>
                                            <th class="sorting">Tên Môn</th>
                                            <th class="sorting">Tổng số TC</th>
                                            <th class="sorting">TC Lý Thuyết</th>
                                            <th class="sorting">TC Thực Hành</th>
                                            <th class="sorting">Học Kỳ</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        @foreach (var monhoc in Model.DanhSachMonHocGiangDay)
                                        {
                                            <tr class="gradeA @((++count % 2) == 0 ? "even" : "odd")">
                                                <td class="odd gradeX">@(counter++)</td>
                                                <td class="odd gradeX">@monhoc.MaMonHoc</td>
                                                <td class="odd gradeX">@monhoc.TenMonHoc</td>
                                                <td class="odd gradeX">@monhoc.TongSoTinChi</td>
                                                <td class="odd gradeX">@monhoc.SoTinChiLyThuyet</td>
                                                <td class="odd gradeX">@(monhoc.TongSoTinChi - monhoc.SoTinChiLyThuyet)</td>
                                                <td class="odd gradeX">@monhoc.HocKy</td>
                                            </tr>
                                        }
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    }

                    <!-- end id-form  -->

                    <div class="clear"></div>
                </div>
            </div>
        </div>
    </div>

    <div class="clear">&nbsp;</div>

</div>

